package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 品种类别表 sys_type
 *
 * @author ruoyi
 * @date 2019-04-22
 */
public class Type extends BaseEntity
{
	private static final long serialVersionUID = 1L;

	/** id */
	private Long typeId;
	/** 父id */
	private Long parentId;
	/** 祖级列表 */
	private String ancestors;
	/** 类别名称 */
	private String typeName;
	/** 删除标志（0代表存在 2代表删除） */
	private String delFlag;

	/** 父类别名称 */
	private String parentName;

	public void setTypeId(Long typeId)
	{
		this.typeId = typeId;
	}

	public Long getTypeId()
	{
		return typeId;
	}
	public void setParentId(Long parentId)
	{
		this.parentId = parentId;
	}

	public Long getParentId()
	{
		return parentId;
	}
	public void setAncestors(String ancestors)
	{
		this.ancestors = ancestors;
	}

	public String getAncestors()
	{
		return ancestors;
	}
	public void setTypeName(String typeName)
	{
		this.typeName = typeName;
	}

	public String getTypeName()
	{
		return typeName;
	}
	public void setDelFlag(String delFlag)
	{
		this.delFlag = delFlag;
	}

	public String getDelFlag()
	{
		return delFlag;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
				.append("typeId", getTypeId())
				.append("parentId", getParentId())
				.append("ancestors", getAncestors())
				.append("typeName", getTypeName())
				.append("delFlag", getDelFlag())
				.toString();
	}
}
